package org.ddd.book.infrastructure.security;

import lombok.extern.slf4j.Slf4j;
import org.ddd.book.domain.security.service.ISecurityService;
import org.ddd.book.domain.security.vo.UserVO;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class SecurityServiceSoaImpl implements ISecurityService {

    @Override
    public void checkLogin() throws CustomSecurityException {
        log.info("SecurityServiceSoaImpl check login ……");
    }

    @Override
    public UserVO currentUser() {
        log.info("SecurityServiceSoaImpl get current user ……");
        return new UserVO(-1L, "VirtualUser", "000000");
    }

}
